package com.course.app.transformer;

import com.course.app.api.data.LearnStatDTO;
import com.course.domain.model.LearnStat;

/**
 * Created by Justin on 2017/7/1.
 */
public class LearnStatTransformer {

    public static LearnStatDTO toDTO(LearnStat stat) {
        LearnStatDTO statDTO = new LearnStatDTO();
        statDTO.setId(stat.getId());
        statDTO.setStudentId(stat.getStudentId());
        statDTO.setCourseId(stat.getCourseId());
        statDTO.setWeekIdx(stat.getWeekIdx());
        statDTO.setWeekDay(stat.getWeekDay());
        statDTO.setTotal(stat.getTotal());
        statDTO.setDone(stat.getDone());
        return statDTO;
    }
}
